<template>
  <div class="assets-list" id="assets-list">
    <div class="assets-list-card">
      <div class="assets-list-card-title">
        <div class="card-type">
          现金
        </div>
        <div class="card-amount">
          0.00
        </div>
      </div>
      <div class="assets-list-card-item">
        <div class="card-type">
          <span class="icon amount-icon"></span>现金
        </div>
        <div class="card-amount">
          0.00<span class="icon icon2 right-icon"></span>
        </div>
      </div>
      <div class="assets-list-card-item">
        <div class="card-type">
          <span class="icon amount-icon"></span>现金
        </div>
        <div class="card-amount">
          0.00<span class="icon icon2 right-icon"></span>
        </div>
      </div>
    </div>

    <div class="assets-list-card">
      <div class="assets-list-card-title">
        <div class="card-type">
          借记卡
        </div>
        <div class="card-amount">
          0.00
        </div>
      </div>
      <div class="assets-list-card-item">
        <div class="card-type">
          <span class="icon bank-card-icon"></span>借记卡
        </div>
        <div class="card-amount">
          0.00<span class="icon icon2 right-icon"></span>
        </div>
      </div>
      <div class="assets-list-card-item">
        <div class="card-type">
          <span class="icon bank-card-icon"></span>借记卡
        </div>
        <div class="card-amount">
          0.00<span class="icon icon2 right-icon"></span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'assets'
}
</script>

<style scoped>
  .assets-list-card-title{
    height: 50px;
    line-height: 50px;
    color: rgb(197, 197, 197);
    padding: 0 30px;
  }
  .assets-list-card-item{
    height: 50px;
    line-height: 50px;
    padding: 0 20px 0 30px;
    font-size: 20px;
  }
  .card-type{
    width: 60%;
    height: 100%;
    float: left;
    text-align: left;
  }
  .card-amount{
    width: 40%;
    height: 100%;
    float: right;
    text-align: right;
  }
  .icon{
    height: 100%;
    position: relative;
    display: inline-block;
    width: 40px;
    float: left;
  }
  .icon:after{
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: calc((100% - 34px) / 2);
  }
  .icon2{
    float: right;
    border: 0;
    width: 30px;
  }
  .icon2:after{
    border: 0;
    right: 0;
    top: calc((100% - 32px) / 2);
  }

  .amount-icon:after{
    background-image: url("~@/common/image/icon/amount-icon.png");
  }
  .bank-card-icon:after{
    background-image: url("~@/common/image/icon/bank-card-icon.png");
  }
  .right-icon:after{
    background-image: url("~@/common/image/icon/right-icon.png");
  }

</style>
